package com.ricky.service;

import com.ricky.dao.UserMapper;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService  implements InitializingBean {
    @Autowired
    private UserMapper userMapper;

    public void afterPropertiesSet() throws Exception {
        System.out.println(userMapper.selectByPrimaryKey("1"));
    }
}
